.hzdz-icon-stat {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: all 0.3s ease;

  &__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, rgba(0, 212, 255, 0.1) 60%, transparent 100%);
    border-radius: 50%;
    margin-right: 16px;

    &::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 80%;
      height: 80%;
      transform: translate(-50%, -50%);
      background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
      border-radius: 50%;
      animation: pulse 2s infinite;
    }

    &-img {
      position: relative;
      z-index: 2;
      display: block;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }
  }

  &__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
  }

  &__value {
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 2px;
  }

  &__label {
    font-weight: normal;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  // 垂直布局
  &--vertical {
    flex-direction: column;
    text-align: center;

    .hzdz-icon-stat__icon {
      margin-right: 0;
      margin-bottom: 12px;
    }

    .hzdz-icon-stat__content {
      align-items: center;
    }
  }

  // 尺寸变体
  &--small {
    .hzdz-icon-stat__icon {
      width: 32px;
      height: 32px;
      margin-right: 12px;

      &-img {
        width: 20px;
        height: 20px;
      }
    }

    .hzdz-icon-stat__value {
      font-size: 16px;
    }

    .hzdz-icon-stat__label {
      font-size: 12px;
    }

    &.hzdz-icon-stat--vertical {
      .hzdz-icon-stat__icon {
        margin-bottom: 8px;
      }
    }
  }

  &--medium {
    .hzdz-icon-stat__icon {
      width: 48px;
      height: 48px;
      margin-right: 16px;

      &-img {
        width: 28px;
        height: 28px;
      }
    }

    .hzdz-icon-stat__value {
      font-size: 20px;
    }

    .hzdz-icon-stat__label {
      font-size: 14px;
    }

    &.hzdz-icon-stat--vertical {
      .hzdz-icon-stat__icon {
        margin-bottom: 12px;
      }
    }
  }

  &--large {
    .hzdz-icon-stat__icon {
      width: 64px;
      height: 64px;
      margin-right: 20px;

      &-img {
        width: 36px;
        height: 36px;
      }
    }

    .hzdz-icon-stat__value {
      font-size: 24px;
    }

    .hzdz-icon-stat__label {
      font-size: 16px;
    }

    &.hzdz-icon-stat--vertical {
      .hzdz-icon-stat__icon {
        margin-bottom: 16px;
      }
    }
  }

  // 主题变体
  &--dark {
    .hzdz-icon-stat__value {
      color: #00d4ff;
    }

    .hzdz-icon-stat__label {
      color: #ffffff;
    }

    .hzdz-icon-stat__icon {
      background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, rgba(0, 212, 255, 0.1) 60%, transparent 100%);

      &::before {
        background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
      }
    }
  }

  &--light {
    .hzdz-icon-stat__value {
      color: #0066cc;
    }

    .hzdz-icon-stat__label {
      color: #333333;
    }

    .hzdz-icon-stat__icon {
      background: radial-gradient(circle, rgba(0, 102, 204, 0.3) 0%, rgba(0, 102, 204, 0.1) 60%, transparent 100%);

      &::before {
        background: radial-gradient(circle, rgba(0, 102, 204, 0.2) 0%, transparent 70%);
      }
    }
  }

  // 悬停效果
  &:hover {
    transform: translateY(-2px);
    
    .hzdz-icon-stat__icon {
      &::before {
        animation-duration: 1s;
      }
    }

    .hzdz-icon-stat__value {
      filter: brightness(1.2);
    }
  }

  &:active {
    transform: translateY(0);
  }
}

// 脉冲动画
@keyframes pulse {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  70% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
} 